<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.gracecode.android.rain"
          android:versionName="1.6.0">

    <uses-sdk
            android:minSdkVersion="16"
            android:targetSdkVersion="19"/>

    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="com.xiaomi.market.sdk.UPDATE"/>

    <supports-screens
            android:anyDensity="true"
            android:resizeable="false"/>

    <application
            android:allowBackup="true"
            android:hardwareAccelerated="true"
            android:label="@string/app_name"
            android:icon="@drawable/ic_launcher"
            android:name=".RainApplication"
            >
        <activity
                android:windowSoftInputMode="stateHidden"
                android:launchMode="singleInstance"
                android:screenOrientation="portrait"
                android:name=".ui.MainActivity"
                android:uiOptions="splitActionBarWhenNarrow"
                android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>

        <receiver android:name=".ui.widget.DesktopPanel">
            <intent-filter>
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
            </intent-filter>
            <intent-filter>
                <action android:name="com.gracecode.android.rain.intent.action.PLAY"/>
            </intent-filter>
            <intent-filter>
                <action android:name="com.gracecode.android.rain.intent.action.STOP"/>
            </intent-filter>

            <meta-data
                    android:name="android.appwidget.provider"
                    android:resource="@xml/app_widgets"/>
        </receiver>

        <service
                android:name=".serivce.PlayService"
                android:label="@string/app_name"
                />

        <meta-data
                android:name="UMENG_APPKEY"
                android:value="5386854056240bb33e043bfc"/>

        <receiver android:name="com.xiaomi.market.sdk.DownloadCompleteReceiver">
            <intent-filter>
                <action android:name="android.intent.action.DOWNLOAD_COMPLETE"/>
            </intent-filter>
        </receiver>
    </application>
</manifest>
